package top.kaoshanji.p2ch10b;

/**
 * 代码清单-p2ch10b-240页b：Applicator接口版本
 * author kaoshanji
 * ^_^
 * create time 2025/3/10 19:29
 */
public class Applicator {

    public static void apply(Processor p, Object s) {
        System.out.println("Using Processor " + p.name());
        System.out.println(p.process(s));
    }

}
